import { lazy } from "react";
import {createBrowserRouter} from 'react-router-dom'
import Tabbar from "../pages/Tabbar";

const Home=lazy(()=>import('../pages/Home'))
const My=lazy(()=>import('../pages/My'))
const List=lazy(()=>import('../pages/List'))


const routes=createBrowserRouter([
    {
        path:"/",
        element:<Tabbar></Tabbar>,
        children:[
            {
                path:"/",
                element:<Home></Home>
            },
            {
                path:"/my",
                element:<My></My>
            },
            {
                path:"/list",
                element:<List></List>
            }
        ]
    }
])

export default routes